package com.ym.jiujiangeyou.ui;

import android.content.Context;
import android.graphics.drawable.Drawable;

/**
 * @author 叶铭
 * @email yeming_1001@163.com
 * @version V1.0
 */

public class ActionItem {

	public Drawable mDrawable;
	public CharSequence mTitle;
	public int titleId;
	public ActionItem(Drawable drawable, CharSequence title) {
		this.mDrawable = drawable;
		this.mTitle = title;
	}
	public ActionItem(Context context, int titleId) {
		this.mTitle = context.getResources().getText(titleId);
		this.titleId = titleId;
		// this.mDrawable = context.getResources().getDrawable(drawableId);
	}

	public ActionItem(Context context, CharSequence title, int drawableId) {
		this.mTitle = title;
		this.mDrawable = context.getResources().getDrawable(drawableId);
	}
	public ActionItem(Context context, CharSequence title) {
		this.mTitle = title;
		// this.mDrawable = context.getResources().getDrawable(drawableId);
	}
}
